<?php
session_start();
if(isset($_REQUEST['username'])){
	$_SESSION['username']=$_REQUEST['username'];
}
if(isset($_REQUEST['lang'])){
	$_SESSION['lang']=$_REQUEST['lang'];
}elseif(!isset($_SESSION['lang'])){
	$_SESSION['lang']='cn';
}
$user_agent = $_SERVER['HTTP_USER_AGENT'];
   //var_dump($user_agent);
if(stristr($_SERVER['HTTP_USER_AGENT'],'Android')) {
   $_SESSION['dev']="android";
}else if(stristr($_SERVER['HTTP_USER_AGENT'],'Mac OS X')){
	$_SESSION['dev']="ios";
   //echo '你的手机是：ISO系统';
}else{
   $_SESSION['dev']="ios";
}
if(isset($_REQUEST['dev'])){
	if($_REQUEST['dev']=="ios"||$_REQUEST['dev']=="iphone"){
		$_SESSION['dev']="ios";
	}else{
		$_SESSION['dev']="android";
	}
	
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



<title>Netcube Help Center</title>

  <meta name="viewport" content="width=device-width,initial-scale=1" />



    <link rel="stylesheet" type="text/css" href="style/reset.css" /> 

    <link rel="stylesheet" type="text/css" href="style/root.css" /> 

    

    <script type="text/javascript" src="js/jquery.min.js"></script>

    <script type="text/javascript" src="js/toogle.js"></script>

<style type="text/css">

body { font-family: "微软雅黑", Arial, Helvetica, sans-serif}

#menu li a b {font-family: "微软雅黑", Arial, Helvetica, sans-serif; padding-right:20px;}

</style>

</head>

<body>





	

    <!-- start header -->

    	<div id="header">

         <a href="#"><img src="img/logo.png" width="77" height="24" alt="logo" class="logo" /></a>

         	<a href="index.php?username=<?php echo $_SESSION['username']?>" class="button back"><img src="img/back-button.png" width="15" height="16" alt="icon" /></a>

           <!--	<a href="#" class="button search"><img src="img/search.png" width="16" height="16" alt="icon"/></a> -->

         <!--	<a href="form.html" class="button create"><img src="img/create.png" width="16" height="16" alt="icon"/></a> -->

        <div class="clear"></div>

</div>

    <!-- end header -->

    

    <!-- start searchbox -->

    <div class="searchbox">

   	  <form id="form1" name="form1" method="post" action="">

      	<input type="text" name="textfield" id="textfield" class="txtbox" />

   	  </form>

    </div>

    <!-- end searchbox -->

    

    

    

    <!-- start page -->

    <div class="page">

    

    		<?php if(isset($_SESSION['username'])){?>

            <!-- start profile box -->

            <div class="profilebox">

            	<?php echo $_SESSION['lang']=='en'?'welcome':'';

            		echo $_SESSION['lang']=='cn'?'欢迎':''; ?> <b><?php echo $_SESSION['username']?></b>

                <a href="#" class="logout">logout</a>

                <div class="clear"></div>

            </div>

            <!-- end profile box -->

            <?php } ?>

            

            

            <!-- start menu -->

           	 <ul id="menu">

           <?php include $_SESSION['dev'].'_title.php';?>
             </ul>
            <!-- end menu -->

            

            

            <!-- start top button -->

            <div class="topbutton"><a href="#"><span>Top</span></a></div>

            <!-- end top button -->

            

            

            

            <!-- start footer -->

            <div class="footer">

            ©  Copyright 2013 . developed by Netcube

            </div>

            <!-- end footer -->

            

            

            

    

    <div class="clear"></div>

    </div>

    <!-- end page -->

	

    

    

    

    

</body>

</html>

